﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace WCFMINERP.Contracts.DataContracts
{
    [DataContract]
    public class OrderInfoQuary : OrderInfo
    {
        [DataMember]
        public string SizeInch
        {
            get { return base.Width.ToString("0.00") + "x" + base.Height.ToString("0.00"); }
            set { ;}
        }

        [DataMember]
        public string SizeCM
        {
            get { return (base.Width * 2.54).ToString("0.00") + "x" + (base.Height * 2.54).ToString("0.00"); }
            set { ;}
        }

        [DataMember]
        public string Size
        {
            get { return base.Width.ToString("0.00") + "x" + base.Height.ToString("0.00") + "(" + (base.Width * 2.54).ToString("0.00") + "x" + (base.Height * 2.54).ToString("0.00") + ")"; }
            set { ;}
        }
        [DataMember]
        public string TechName { get;set; }
        [DataMember]
        public double Area{get;set;}

        [DataMember]
        public DateTime CreateTime{get;set;}
        [DataMember]
        public DateTime FatchTime { get; set; }
        [DataMember]
        public List<PhotoInfoQuery> PhotoList{get;set;}
    }
}
